#ifndef CONSUMERSYS_H
#define CONSUMERSYS_H

#include <QWidget>
#include <QSqlTableModel>
#include <QSqlQuery>
#include <QDateTime>
#include <QDebug>
#include <QString>
#include <QInputDialog>
#include <QTimer>
#include <QMessageBox>
#include "user.h"
#include "article.h"
#include "client.h"

namespace Ui {
class ConsumerSYS;
}

class ConsumerSYS : public QWidget
{
    Q_OBJECT

public:
    explicit ConsumerSYS(QString username, QWidget *parent = 0);
    ~ConsumerSYS();
    void editUserInfo();
    void refreshInfo();
    void refreshExpressInfo();//
    void handleRecharge();
    void handleSend();//
    void handleRecv();
    void modelInit();
    void search();
private:
    Ui::ConsumerSYS *ui;
    QString username;
    QSqlTableModel *model, *model2, *model3;
    Consumer *consumer;
    Article *art;
    Client *client;
    QTimer *timer;

};

#endif // CONSUMERSYS_H
